//
//  UICoordinateSpaceProtocol.swift
//  Documentation
//
//  Created by Toj on 3/6/24.
//

import Foundation

public protocol UICoordinateSpace : NSObjectProtocol {

    @available(iOS 8.0, *)
    func convert(_ point: CGPoint, to coordinateSpace: UICoordinateSpace) -> CGPoint

    @available(iOS 8.0, *)
    func convert(_ point: CGPoint, from coordinateSpace: UICoordinateSpace) -> CGPoint

    @available(iOS 8.0, *)
    func convert(_ rect: CGRect, to coordinateSpace: UICoordinateSpace) -> CGRect

    @available(iOS 8.0, *)
    func convert(_ rect: CGRect, from coordinateSpace: UICoordinateSpace) -> CGRect

    @available(iOS 8.0, *)
    var bounds: CGRect { get }
}
